package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.otherbean.Project;
import com.tansuo365.test1.mapper.othermapper.ProjectMapper;
import com.tansuo365.test1.service.otherservice.ProjectService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectServiceImpl implements ProjectService {
    @Resource
    private ProjectMapper projectMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return projectMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteBatchByPKArr(Integer[] ids) {
        return projectMapper.deleteBatchByPKArr(ids);
    }

    @Override
    public int insert(Project project) {
        return projectMapper.insert(project);
    }

    @Override
    public int insertSelective(Project project) {
        return projectMapper.insertSelective(project);
    }

    @Override
    public Project selectByPrimaryKey(Integer id) {
        return projectMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<Project> findByParentId(int p_id) {
        return projectMapper.findByParentId(p_id);
    }

    @Override
    public int updateByPrimaryKeySelective(Project project) {
        return projectMapper.updateByPrimaryKeySelective(project);
    }

    @Override
    public int updateByPrimaryKey(Project project) {
        return projectMapper.updateByPrimaryKey(project);
    }
}
